<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>

<body>
    <div id="app">
        <blog-post v-for="(item, index) in titles" :title="item"></blog-post>
        <!-- <blog-post title="My journey with Vue"></blog-post> -->
        <!-- <blog-post title="Blogging with Vue"></blog-post> -->
        <!-- <blog-post title="Why Vue is so fun"></blog-post> -->
    </div>
</body>
<script>
    Vue.component('blog-post', {
        props: ['title'],
        template: '<h3>{{ title }}</h3>'
    })
    var app = new Vue({
        el: '#app',
        data: {
            titles: ['My journey with Vue', 'Blogging with Vue', 'Why Vue is so fun']
        }
    })
</script>

</html>